<?php
$paginator = $this->paginator;
$country   = $this->country;

$listCountry = $this->listCountry;
?>
<div class="wrapper-content">
    <div class="top-title">
        <div class="content-title">
            <h2><?php echo $this->translate('Hotel_&_Resort') ?></h2>
        </div>
    </div>
    <!-- column left -->
    <div class="span12" id="content-right-2">
    <div class="block" style="padding-bottom: 220px;border: none;margin-left:15px;">
        <?php if($listCountry): ?>
        <?php foreach($listCountry as $k => $v): ?>
			<div class="block-content">
			    <div class="block-hotel-tilte">
			        <div style="width:12px;float:left;margin-top:12px;">
				        <img src="/static/default/images/bulleted.png" class="bulleted" />
				    </div>
				    <div style="float:left;<?php echo ($v['area']) ? "width: 90px;" : "width:120px;"; ?>">
				        <h4><a href="/hotel"><?php echo $v['name'] ?></a></h4>
				    </div>
				</div>
				<div class="block-hotel-content">
					<?php if($v['area']): ?>
						<table style="margin-left:-10px;">
							<?php foreach($v['area'] as $kA => $vA): ?>
								<tr>
									<td style="min-width:120px;width:auto"><b><?php echo trim($vA['name']); ?> : </b></td>
									<td>
										<?php foreach($vA['list_region'] as $key => $value): ?>
					            			<div class="block-content-hotel-list-vn">
					            				<a href="<?php echo '/hotel/'.$value['id'].'/'.str_replace(' ', '-' ,trim($value['name'])) .'.html';?>" style="text-decoration: underline;"><?php echo $value['name']; ?></a>
					            				<?php if(($key + 1) != count($vA['list_region'])): ?>
					            				    <p class="inline-space">|</p>
					            				<?php endif; ?>
					            			</div>
					        			<?php endforeach; ?>
									</td>
								</tr>
							<?php endforeach; ?>	
						</table>
					<?php else: ?>
	        			<?php if($v['list_region']): ?>
	        			<?php foreach($v['list_region'] as $key => $value): ?>
	            			<div class="block-content-hotel-list">
	            				<a href="<?php echo '/hotel/'.$value['id'].'/'.str_replace(' ', '-' ,trim($value['name'])) .'.html';?>" style="text-decoration: underline;"><?php echo $value['name']; ?></a>
	            				<?php if(($key + 1) != count($v['list_region'])): ?>
	            				    <p class="inline-space">|</p>
	            				<?php endif; ?>
	            			</div>
	        			<?php endforeach; ?>
	        			<?php endif; ?>
        			<?php endif; ?>
    			</div>
			</div>
		<?php endforeach; ?>
		<?php endif; ?>
	</div><!-- //end hotel -->
    </div>
    <!-- column right -->
    <div class="span4" id="content-left-2">
        <?php echo $this->partial('/right-render/support.phtml'); ?>
    </div>
</div>